Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "value-type-search-near-marker">
It provides a list of the public transport routes that have a stop in a specified area.
Inputs
A JSON with these parameters:
- latitude
number
- latitude of a GPS position
- longitude
number
- longitude of a GPS position
- valuetype
string
- the value type registered by sensors that are searched
- maxdistance
number
- maximum distance from the GPS position of the services to be retrieved, expressed in Km (0.1 is used if parameter
is missing) if it is equal to “inside” it searches for services with a WKT geometry that contains the specified
GPS position (e.g a park)
- maxresults
number
- maximum number of results to be returned (if parameter is missing 100 is assumed), if it is 0 all results are returned
Outputs
- ServiceUri Array
- Returns an array containing the servicesUri of each service found
- All services together
- It returns the services merge in Results section
Details
The node can receive a JSON with the parameters described in the Inputs section and with them generate the output JSON.
If the values are not present in the input JSON, these are read by those in the configuration. If they are not present
in either part, an error is generated for the necessary parameters.